package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tmeone.erpone.entity.SCompany;
import com.tmeone.erpone.entity.SCompanys;
import com.tmeone.erpone.entity.TProduct;
import com.tmeone.erpone.mapper.SCompanyMapper;
import com.tmeone.erpone.service.ISCompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tmeone
 * @since 2021-04-18
 */
@Service
public class SCompanyServiceImpl extends ServiceImpl<SCompanyMapper, SCompany> implements ISCompanyService {

    @Autowired
    private SCompanyMapper companyMapper;
    @Override
    public IPage<SCompany> pageSCompanys(IPage<SCompany> page) {
        return companyMapper.pageSCompanys(page);
    }

    @Override
    public IPage<TProduct> pageTProduct(IPage<TProduct> page, String companyId) {
        return companyMapper.pageTProduct(page,companyId);
    }

    @Override
    public IPage<SCompany> pageUcompany(IPage<SCompany> page, String prov, String city, String district, String input) {
        return companyMapper.pageUcompany(page,prov,city,district,input);
    }
}
